package com.pig.pojo.order;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("p_orderItem")
public class OrderItem implements Serializable {

    private Long orderItemId;
    private String orderId;
    private Integer userId;
    private Integer itemId;
    private Integer num;
    private Integer itemPrice;


    public OrderItem() {
    }

    public OrderItem(Long orderItemId, String orderId, Integer userId, Integer itemId, Integer itemNum, Integer itemPrice) {
        this.orderItemId = orderItemId;
        this.orderId = orderId;
        this.userId = userId;
        this.itemId = itemId;
        this.num = itemNum;
        this.itemPrice = itemPrice;
    }


    @Override
    public String toString() {
        return "OrderItem{" +
                "orderItemId=" + orderItemId +
                ", orderId='" + orderId + '\'' +
                ", userId=" + userId +
                ", itemId=" + itemId +
                ", itemNum=" + num +
                ", itemPrice=" + itemPrice +
                '}';
    }

    public Integer getItemPrice() {
        return itemPrice;
    }

    public void setItemPrice(Integer itemPrice) {
        this.itemPrice = itemPrice;
    }

    public Long getOrderItemId() {
        return orderItemId;
    }

    public void setOrderItemId(Long orderItemId) {
        this.orderItemId = orderItemId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
}
